//package PTA;
//import java.util.*;
//class Student {
//    protected String name;
//    protected int age;
//    public Student(){}
//    public Student(String name, int aga){
//        this.name = name;
//        this.age = aga;
//    }
//    public void show(){
//        System.out.println("Student[name=" + name + ",age=" + age + "]");
//    }
//}
//class Undergraduate extends Student {
//    private String major;
//    public Undergraduate(String name, int aga, String major){
//        this.name = name;
//        this.age = aga;
//        this.major = major;
//    }
//    public void show(){
//        System.out.println("Undergraduate[name=" + this.name + ",age=" + this.age + ",major=" + major + "]");
//    }
//}
//
//public class xt10_7_2 {
//    public static void main(String[] args) {
//        Scanner sc = new Scanner(System.in);
//        String t1 = sc.next();
//        int t2 = sc.nextInt();
//        Student student = new Student(t1, t2);
//
//        String f1 = sc.next();
//        int f2 = sc.nextInt();
//        String f3 = sc.next();
//       Undergraduate undergraduate = new Undergraduate(f1,f2,f3);
//        student.show();
//        undergraduate.show();
//
//    }
//}
